package com.mlk.good.service;

import com.mlk.core.component.LayEditAdapt;
import com.mlk.core.component.page.Pager;
import com.mlk.core.util.ServerResponse;
import com.mlk.good.po.EngGood;
import com.mlk.good.po.EngGoodInfo;
import com.mlk.good.po.EngGoodIntroduce;
import com.mlk.good.po.EngGoodPic;
import com.mlk.good.vo.EngGoodVO;
import org.springframework.web.multipart.MultipartFile;

public interface EngGoodService {


    Pager list(EngGood good);

    ServerResponse add(EngGoodVO goodVO);

    LayEditAdapt uploadIntroducePic(MultipartFile file);

    ServerResponse uploadGoodPic(EngGoodPic pic,MultipartFile file);

    ServerResponse delGoodPic(Integer id);

    ServerResponse goodChangeStatus(String id);

    ServerResponse updateGoodInfo(EngGood good);

    ServerResponse getIntroduce(String id);

    ServerResponse updateIntroduce(EngGoodIntroduce introduce);

    ServerResponse getGoodPic(String id);

    Pager goodParamList(String goodId);

    ServerResponse addGoodParamItem(EngGoodInfo info);

    ServerResponse updateParamItem(EngGoodInfo info);

    ServerResponse changeParamItem(Integer id);

    ServerResponse queryScore(String openId);

    Pager goodList(EngGoodVO good);

    ServerResponse getGoodBanner(String goodId);

    ServerResponse getGoodMainInfo(String goodId);

    ServerResponse getGoodIntroduce(String goodId);

    ServerResponse getGoodParamList(String goodId);

}
